package com.hxzy.shop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author qy
 * @Description: 商户插件表
 * @date:2021/8/10 14:41
 */
@Data
@ApiModel("商户插件表")
public class MerchantPlugs {
    private final static long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("记录表id")
    private Long id;
    @ApiModelProperty("插件id")
    private Long plugId;
    @ApiModelProperty("总数量")
    private Integer plugTotal;
    @ApiModelProperty("已使用数量")
    private Integer plugUsed;
    @ApiModelProperty("剩余数量")
    private Integer plugResidue;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("商户id")
    private Long merchantId;

    @ApiModelProperty("插件单价")
    @TableField(exist = false)
    private BigDecimal plugPrice;

}
